﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using School.Entities;

namespace School.Organization
{
    public static class Organization
    {
        private static SchoolEntities db = new SchoolEntities();

        public static void AddCampus(string name, string desc)
        {
            ORG_Campus campus = new ORG_Campus();
            long id = (from c in db.ORG_Campus select c.Id).Max() + 1;
            campus.Id = id;
            campus.Name = name;
            campus.Description = desc;
            db.AddToORG_Campus(campus);
            db.SaveChanges();
        }
    }
}
